/*
 * @Author       : shenqing
 * @desc         : 组件描述
 * @Date         : 2022-07-18 09:45:58
 * @LastEditTime : 2022-10-11 10:19:48
 * @LastEditors  : shenqing
 * @FilePath     : \questionnaire\src\store\index.js
 */
import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import { sessionStorage } from 'mp-storage'
import createPersistedState from 'vuex-persistedstate'
import serverConfig from './modules/serverConfig'
console.log(15,serverConfig)

const createPersisted = createPersistedState({
    storage: sessionStorage
})
Vue.use(Vuex)
const store = new Vuex.Store({
    modules: {
        serverConfig
    },
    getters,
    plugins: [createPersisted]
})
export default store
